home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Network PC
/
Network PC.iso
/
windows 95 utilities
/
programming tools
/
freeman installer
/
iconobj.h_
/
iconobj
Wrap
Text File
|
1995-09-17
|
472b
|
38 lines
#define STRICT
extern HINSTANCE inst;
class iconobj
{
HICON icon;
public:
iconobj()
{
icon = 0;
}
~iconobj()
{
if (icon != 0)
{
DestroyIcon(icon);
}
}
int load(int id)
{
return load((char*)MAKEINTRESOURCE(id));
}
int load(char iconname[])
{
return (icon = LoadIcon(inst, iconname)) != 0;
}
operator HICON()
{
return icon;
}
};